<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>欢迎参加本次的调查活动</title>
</head>
<body>
	<%@ include file="jsp/header.jspf"%><br />
	<br />
	<br />
	<s:if test="#session['user']!=null">
		欢迎您：<s:property value="#session['user'].nickname" />
		&nbsp;&nbsp;&nbsp;
		<s:a action="loginAction_logout" namespace="/">登出</s:a>
	</s:if>
	<s:else>
		<s:a action="regAction_regPage">注册</s:a>
		<br />

		<s:form action="loginAction_login" method="post">
			<s:textfield name="email" label="邮箱"></s:textfield>
			<s:fielderror>
				<s:param name="email"></s:param>
			</s:fielderror>
			<br />
			<s:textfield name="password" label="密码" value=""></s:textfield>
			<s:fielderror>
				<s:param name="password"></s:param>
			</s:fielderror>
			<br />
			<s:fielderror>
				<s:param name="result"></s:param>
			</s:fielderror>
			<s:submit value="确定"></s:submit>
		</s:form>
	</s:else>
	<s:if test="msg!=null">
		<s:property value="msg" />
	</s:if>
</body>
</html>